package tds.model25;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Director
 * @Description 总经理
 * @author tds
 * @Date 2020/2/7 19:57
 * @version 1.0.0
 */
public class GeneralManager extends Leader {

    public GeneralManager(String name) {
        super(name);
    }

    @Override
    public void handleRequest(LeaveRequest request) {
        if(request.getLeaveDays() < 30){
            System.out.println("总经理" + name + "同意了" + request.getName() + "的" + request.getReason() + "的" + request.getLeaveDays() + "天的请假请求！");
        }else {
            System.out.println("总经理：是不是不想干了！！！" );
        }
    }
}
